home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0024.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  1.5 KB  |  36 lines

  1. >>3. Are there any useful tips for ensuring that your program
  2. >>   runs at a similar speed on different speed Amigas, particularly
  3. >>   when you're using AMAL?
  4. >
  5. > AC>   Use the vertical blank interrupt.  In your main program, put "Wait
  6. > AC> Vbl"
  7. > AC> at the end of your main loop, and use a "P" command at the end of a
  8. > AC> loop
  9. > AC> in AMAL..  If your loops are long, there may be a speed decrease on
  10. > AC> slow
  11. > AC> Amigas, but otherwise, your program will be sync'ed to the vertical
  12. > AC> blank, which (apart from differences between NTSC and PAL, which you
  13. > AC> can
  14. > AC> detect with the Ntsc function) is always the same speed.
  15. >Wrong. Sorry Andy, but:
  16. >This assumes that you main loop will be compleated within one screen
  17. >refresh.
  18.  
  19.   Read carefully what I said above: "If your loops are long, there may be a
  20. speed decrease on slow Amigas".  Granted, I did not say under what specific
  21. circumstances there would be a speed decrease, but I am certainly not
  22. "wrong".  It would have been more appropriate for you to say, "To elaborate,
  23. there will be a speed decrease if your main loop takes longer than one
  24. vertical blank period on a 68000 and takes less than one on a 68020+."  Or
  25. something along those lines.
  26.  
  27. >If your main loop takes longer than 1 vbl cycle on an 68000 and less than 1
  28. >on a 68+ then there will be a speed increase on the faster machine.
  29.  
  30.   Same thing - it depends which angle you're coming from.  If you're used to
  31. 68000's, then it's a speed increase.  If you're used to an 030/040, it's a
  32. speed decrease.
  33.  
  34.   --Andy Church
  35.  
  36.